function nameStr = ComputerName()
%COMPUTERNAME Summary of this function goes here
%   Detailed explanation goes here
    if ispc
        nameStr = getenv('COMPUTERNAME');
    elseif ismac
        [~, name] = system('scutil --get ComputerName');
        nameStr = regexprep(name,'\s+','');
    else
        error('Platform not supported');
    end
end

